﻿        <!--#include file="ajax/conn.asp" -->
        <!--#include file="ajax/sessao.asp" -->
        <!--#include file="topo.asp" -->
        <script type="text/javascript" src="library/ckeditor/ckeditor.js"></script>
        <script type="text/javascript" src="library/ckfinder/ckfinder.js"></script>
        <script type="text/javascript" src="js/template.js"></script>
    </head>
    <body>
        <!--Inicio [lightbox]-->
        <div id="criar_lista" class="lightbox pag_template" style="display: none;">
            <form action="ajax/insere.asp?do=setTemplate" class="template_form" id="template_form" method="post">
                <input type="hidden" name="cod_layout_informativos" id="cod_layout_informativos" value="0">
                <span class="titulo">
                    <h1>Cadastro de Template</h1>
                    <span class="fechar">
                        <a href="#" onclick="javascript:bi.LightboxEsconde(); return false;" class="botao_fechar"></a>
                    </span>
                </span>
                <span class="hr"></span>
                <br>
                <div class="grupo">
                    <span class="item">
                        <span class="lbl"><h3>Nome</h3></span>
                            <span class="inp">
                                <input type="text" name="nome" id="nome" value="">
                            </span>
                        </span>
                    </span>
                    <span class="item">
                        <span class="lbl"><h3>Status</h3></span>
                        <span class="inp">
                            <select name="cmb_cod_status" id="cmb_cod_status" style="width:200px">
                                <option value="">Selecione</option>
                            </select>
                        </span>
                    </span>        
                    <br>
                    <br>
                    <span class="lbl"><h3>&nbspConteudo</h3></span>
                    <br>
                    <span class="item">
                        <textarea style="width:300px;" id="conteudo" name="conteudo"></textarea>  
                    </span>
                    <div class="botoes">
                        <a href="#" class="botao ico btn_salvar" onclick="return gravar();">
                            <span class="save btn_salvar">
                            </span>
                            <span class="txt btn_salvar">
                                Salvar
                            </span>
                        </a>
                        <a href="#" class="botao ico" onclick="return criar_preview();">
                            <span class="preview">
                            </span>
                            <span class="txt">
                                Preview
                            </span>
                        </a>
                    </div>
                </div>
            </form>
        </div>
        <!--Fim [lightbox]-->
        <!--Inicio Preview-->
        <div id="criar_lista_preview" class="lightbox pag_template" style="display: none; width : 900px;">
            <span class="titulo">
                <h1>Preview</h1>
                <span class="fechar">
                    <a href="#" onclick="javascript:bi.LightboxEsconde(); return false;" class="botao_fechar">
                    </a>
                </span>
            </span>
            <span class="hr">
            </span>
            <br>
            <div id="dv_preview">
            </div>
        </div>
        <!--Fim Preview-->
        <!--Inicio [pag]-->
        <div class="pag pag_template">
            <!--#include file="menu.asp"-->
            <div id="fixo" class="normal fixed" style="display: none; z-index: 11;">
            </div>
            <!--Inicio [pag_body]-->
            <span class="pag_body">
                <span class="wrap">
                    <span class="titulo">
                        <span class="ball">
                            <span class="templates">
                            </span>
                        </span>
                        <h1>Templates</h1>
                    </span>
                </span>
            </span>
            <form name="template_pesquisar" id="template_pesquisar" method="post">
                <span class="pag_body">
                    <span class="wrap">
                        <span class="subtitulo pointer" onclick="javascript: bi.Filtro({div: 'pesquisa_usuario', el: $('#setinha'), img1: 'seta_b', img2: 'seta_c'});">
                            <h2>Critérios de pesquisa:</h2>
                            <span class="filtro"><span class="seta_c" id="setinha"></span></span>
                        </span>
                        <span class="hr"></span>
                        <br>
                        <span class="hr"></span>
                        <br>
                        <div class="grupo">
                            <span class="item">
                                <span class="lbl"><h3>Template</h3></span>
                                <span class="inp">
                                    <input type="text" name="filtro_nome" class="keypress" id="filtro_nome" value="">
                                </span>
                            </span>
                            <div class="botoes">
                                <span class="inp">
                                    <a href="#" onclick="return pesquisar();" class="botao ico"><span class="search"></span><span class="txt">Pesquisar</span></a>
                                </span>
                            </div>
                        </div>
                    </span>
                </span>
            </form>
            <span class="pag_body">
                <span class="wrap">        
                    <span class="subtitulo"><h2>Lista de templates:</h2></span>
                    <span class="hr"></span>
                    <br>
                    <span id="retorno_templates"></span>
                    <div class="botoes">
                        <a href="#" class="botao ico" onclick="return criar_lista();">
                            <span class="plus"></span>
                            <span class="txt">Criar template</span>
                        </a>
                    </div> 
                </span>
                <!--Fim [pag_body]-->
            </span>
        </div>
        <!--Fim [pag]-->
    </body>
</html>
<script TYPE="text/javascript">
    chamaCkEditor();
    $("#menu_template").addClass("sel");
</script>
